package com.gaosai.staff.domain;

import com.google.gson.Gson;

/**
 * 用户bean
 * @author willis
 *
 */
public class User  {

	/**创建时间*/
	private long createTime ;
	/**udid*/
	private String userUDID ;
	/**最后时间 */
	private long lastTime ;
	/**状态 */
	private int state ;
	/**用户id*/
	private String userId ;
	/**用户名*/
	private String userName ;
	private  String phone;
	private String  staffId;
	private String  english_name;
	private String  chinese_name;
	
	public User() {
		super();
	}

	public User(long createTime, String userUDID, long lastTime, int state,
			String userId, String userName, String phone, String staffId,
			String english_name, String chinese_name) {
		super();
		this.createTime = createTime;
		this.userUDID = userUDID;
		this.lastTime = lastTime;
		this.state = state;
		this.userId = userId;
		this.userName = userName;
		this.phone = phone;
		this.staffId = staffId;
		this.english_name = english_name;
		this.chinese_name = chinese_name;
	}
	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public String getUserUDID() {
		return userUDID;
	}

	public void setUserUDID(String userUDID) {
		this.userUDID = userUDID;
	}

	public long getLastTime() {
		return lastTime;
	}

	public void setLastTime(long lastTime) {
		this.lastTime = lastTime;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getStaffId() {
		return staffId;
	}

	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}

	public String getEnglish_name() {
		return english_name;
	}

	public void setEnglish_name(String english_name) {
		this.english_name = english_name;
	}

	public String getChinese_name() {
		return chinese_name;
	}

	public void setChinese_name(String chinese_name) {
		this.chinese_name = chinese_name;
	}

	@Override
	public String toString() {
		return "User [createTime=" + createTime + ", userUDID=" + userUDID
				+ ", lastTime=" + lastTime + ", state=" + state + ", userId="
				+ userId + ", userName=" + userName + ",phone="+phone+",staffId="+staffId+",english_name="+english_name+",chinese_name="+chinese_name+"]";
	}
	
	public static User  parse(String jsonString){
		Gson gson = new Gson() ;
		return gson.fromJson(jsonString, User.class) ;
	}
}


